""" 
@Version: 0.1
@FileName    :    for6
@Author      :    kx
@CreateTime  :    2021/7/7 18:23 
@Description :    打印各种三角形图案
*
**
***
****
*****

    *
   **
  ***
 ****
*****

    *
   ***
  *****
 *******
*********
"""

# row = int(input('请输入行数：'))
# for i in range(row):
#     for j in range(i+1):
#         print('*',end=' ')
#     print()

# row = int(input('请输入行数：'))
# for i in range(row):
#     for j in range(row):
#         if j < row-1-i:
#             print(' ', end='')
#         else:
#             print('*', end='')
#     print()

row = int(input('请输入行数：'))
for i in range(row):
    for j in range(row - 1 - i):
        print(' ', end='')
    for j in range(2*i + 1):
        print('*', end='')
    print()
